package com.yidianyanglao.common.bean;

import com.alibaba.fastjson.annotation.JSONField;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * Created by Administrator on 2016/11/5.
 */
public class Notice {


    private int id;
    private int noticeId;   //IOS单独使用的 用来解析id的字段，与数据无关
    private int userId;
    private String userName;
    private String content;
//    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdate;
    private int noticetype;   //可以从枚举获取，消息类型  0：用户须知  1：运营公告   2：消费通知  3：回购通知   4：转赠通知  5：奖励通知
    private int readstate;   //0:未读  1：已读  2：弹窗

    public Notice(){}

    public Notice(int userId,String userName,String content,int noticetype,int readstate){
        this.userId = userId;
        this.userName = userName;
        this.content = content;
        this.noticetype = noticetype;
        this.readstate = readstate;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public int getNoticetype() {
        return noticetype;
    }

    public void setNoticetype(int noticetype) {
        this.noticetype = noticetype;
    }

    public int getReadstate() {
        return readstate;
    }

    public void setReadstate(int readstate) {
        this.readstate = readstate;
    }

    public int getNoticeId() {
        return this.id;
    }

}
